﻿<%@ Page Language="c#" CodeBehind="ClientContact.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.ClientContactPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>客户接触</title>
  <script language="JavaScript" src="../../Css/meizzDate.js"></script>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="javascript">
  //<!--
  function changein()
  {
	  var removeindexs = new Array();
	  var j = 0;

	  for(var i=0;i<document.getElementById("lbx_Staff").options.length;i++)
	  {
		  if(document.getElementById("lbx_Staff").options[i].selected)
		  {
			  document.getElementById("lbx_Cooperater").options.add(new Option(document.getElementById("lbx_Staff").options[i].text,document.getElementById("lbx_Staff").options[i].value));
			  removeindexs[j++] = i;
		  }
  	
	  }
	  for(var i=0;i<j;i++)
	  {
		  //alert(removeindexs[i].valueOf());
		  document.getElementById("lbx_Staff").options.remove(removeindexs[i].valueOf());
		  for(var k=i;k<removeindexs.length;k++)
		  {
			  removeindexs[k] = removeindexs[k]-1;
		  }			
	  }

  }

  function changeout()
  {
	  var removeindexs = new Array();
	  var j = 0;

	  for(var i=0;i<document.getElementById("lbx_Cooperater").options.length;i++)
	  {
		  if(document.getElementById("lbx_Cooperater").options[i].selected)
		  {
			  document.getElementById("lbx_Staff").options.add(new Option(document.getElementById("lbx_Cooperater").options[i].text,document.getElementById("lbx_Cooperater").options[i].value));
			  removeindexs[j++] = i;
		  }
  	
	  }
	  for(var i=0;i<j;i++)
	  {
		  //alert(removeindexs[i].valueOf());
		  document.getElementById("lbx_Cooperater").options.remove(removeindexs[i].valueOf());
		  for(var k=i;k<removeindexs.length;k++)
		  {
			  removeindexs[k] = removeindexs[k]-1;
		  }			
	  }
  }
  function changelinkmanin()
  {
	  var removeindexs = new Array();
	  var j = 0;

	  for(var i=0;i<document.getElementById("lbx_ClientLinkman").options.length;i++)
	  {
		  if(document.getElementById("lbx_ClientLinkman").options[i].selected)
		  {
			  document.getElementById("lbx_Linkman").options.add(new Option(document.getElementById("lbx_ClientLinkman").options[i].text,document.getElementById("lbx_ClientLinkman").options[i].value));
			  removeindexs[j++] = i;
		  }
  	
	  }
	  for(var i=0;i<j;i++)
	  {
		  //alert(removeindexs[i].valueOf());
		  document.getElementById("lbx_ClientLinkman").options.remove(removeindexs[i].valueOf());
		  for(var k=i;k<removeindexs.length;k++)
		  {
			  removeindexs[k] = removeindexs[k]-1;
		  }			
	  }

  }
  function changelinkmanout()
  {
	  var removeindexs = new Array();
	  var j = 0;

	  for(var i=0;i<document.getElementById("lbx_Linkman").options.length;i++)
	  {
		  if(document.getElementById("lbx_Linkman").options[i].selected)
		  {
			  document.getElementById("lbx_ClientLinkman").options.add(new Option(document.getElementById("lbx_Linkman").options[i].text,document.getElementById("lbx_Linkman").options[i].value));
			  removeindexs[j++] = i;
		  }
  	
	  }
	  for(var i=0;i<j;i++)
	  {
		  //alert(removeindexs[i].valueOf());
		  document.getElementById("lbx_Linkman").options.remove(removeindexs[i].valueOf());
		  for(var k=i;k<removeindexs.length;k++)
		  {
			  removeindexs[k] = removeindexs[k]-1;
		  }			
	  }

  }
  //-->
  </script>
</head>
<body>
  <form id="ClientContact" method="post" enctype="multipart/form-data" runat="server">
    <table bordercolor="#111111" height="1" cellspacing="0" cellpadding="0" width="100%" border="0">
      <tr height="30">
        <td class="GbText" width="24" background="../../Images/treetopbg.jpg" bgcolor="#c0d9e6"><font color="#003366" size="3"><IMG height="16" src="../../DataImages/ClientManage.gif" width="16"></font></td>
        <td class="GbText" align="right" width="60" background="../../Images/treetopbg.jpg" bgcolor="#c0d9e6"><font color="#006699">客户跟踪</font></td>
        <td class="GbText" align="right" background="../../Images/treetopbg.jpg" bgcolor="#c0d9e6"></td>
      </tr>
    </table>
    <table class="gbtext" id="Table4" style="border-collapse: collapse" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" align="center" border="1">
      <tr>
        <td width="76" bgcolor="#e8f4ff" height="34" style="width: 76px; height: 34px" valign="middle" align="center" colspan="1" rowspan="1">客户名称</td>
        <td colspan="2" style="height: 34px"><asp:Literal ID="ltl_ClientName" runat="server" Visible="False" /><asp:Panel ID="pnl_clientselect" runat="server">
          <asp:DropDownList ID="ddl_ClientName" runat="server" AutoPostBack="True" />
          <asp:TextBox ID="tbx_quicksearch" runat="server" CssClass="inputcss" />
          <asp:Button ID="btn_search" runat="server" CssClass="redbuttoncss" Text="查询" />
        </asp:Panel>
        </td>
        <td style="height: 34px">客户简称&nbsp;&nbsp;<asp:Literal ID="ltl_ClientShortName" runat="server" /></td>
      </tr>
      <tr>
        <td style="width: 76px; height: 24px" bgcolor="#e8f4ff" height="24" align="center">最后填写接触时间</td>
        <td style="width: 274px; height: 24px" bgcolor="#e8f4ff">&nbsp; <asp:Literal ID="ltl_UpdateTime" runat="server" /></td>
        <td style="height: 24px" width="90" bgcolor="#e8f4ff" align="center" colspan="1" rowspan="1">发现时间</td>
        <td style="height: 24px" bgcolor="#e8f4ff">&nbsp; <asp:Literal ID="ltl_Birthday" runat="server" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center">接洽次数(合计)</td>
        <td style="width: 274px" bgcolor="#e8f4ff">&nbsp;<asp:Literal ID="ltl_ContactTimes" runat="server" /></td>
        <td bgcolor="#e8f4ff" align="center" colspan="1" rowspan="1">销售阶段(最新)</td>
        <td bgcolor="#e8f4ff">&nbsp; <asp:Literal ID="ltl_sellphase" runat="server" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center" colspan="1" rowspan="1">成交预估(最新)</td>
        <td style="width: 274px" bgcolor="#e8f4ff">&nbsp;<asp:Label ID="lbl_BargainPrognosis" runat="server" /></td>
        <td bgcolor="#e8f4ff" align="center">发生费用(合计)</td>
        <td bgcolor="#e8f4ff">&nbsp; <asp:Literal ID="ltl_fee" runat="server" /></td>
      </tr>
      <tr>
        <td style="width: 76px" align="center" bgcolor="#e8f4ff" height="24">销售人员</td>
        <td style="width: 274px" bgcolor="#e8f4ff">
          <asp:DropDownList ID="ddl_SellMan" runat="server" Visible="False" />
          <asp:Literal ID="ltl_AddMan" runat="server" /></td>
        <td align="center" bgcolor="#e8f4ff"></td>
        <td bgcolor="#e8f4ff"></td>
      </tr>
      <tr>
        <td style="width: 76px; height: 20px" align="center" bgcolor="#8af2ff" height="20"><font style="background-color: #e8f4ff"></font></td>
        <td style="width: 274px; height: 20px" align="center" bgcolor="#8af2ff"></td>
        <td style="height: 20px" align="center" bgcolor="#8af2ff" colspan="1" rowspan="1"></td>
        <td style="height: 20px" align="center" bgcolor="#8af2ff" colspan="1" rowspan="1"></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center" colspan="1" rowspan="1">本次接触时间</td>
        <td style="width: 274px">&nbsp;<asp:TextBox ID="tbx_contacttime" runat="server" ReadOnly="True" Width="88px" /></td>
        <td align="center" bgcolor="#e8f4ff" colspan="1" rowspan="1">预计下次接触时间</td>
        <td>&nbsp;
          <asp:TextBox ID="tbx_nextcontacttime" runat="server" Width="88px" ReadOnly="True" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="65" style="width: 76px" align="center" colspan="1" rowspan="1">协同人员</td>
        <td colspan="3" height="65">
          <table id="Table1" cellspacing="0" cellpadding="0" width="380" border="0">
            <tr>
              <td align="center">
                <asp:ListBox ID="lbx_Cooperater" runat="server" Width="150px" SelectionMode="Multiple" />
              </td>
              <td align="center">
                <p align="center">
                  <asp:Button ID="btn_in" runat="server" CssClass="redbuttoncss" Text="<<<" /><br>
                  <br>
                  <asp:Button ID="btn_out" runat="server" CssClass="redbuttoncss" Text=">>>" /></p>
              </td>
              <td align="center">
                <asp:ListBox ID="lbx_Staff" runat="server" Width="150px" SelectionMode="Multiple" />
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="67" style="width: 76px" align="center" colspan="1" rowspan="1">接触对象<br>
          <br>
          <input class="redbuttoncss" id="btn_addlinkman" style="width: 65px; height: 20px" onclick="window.open('Linkman.aspx?ClientID=<%=CurrentClientID%>')" type="button" alt="添加联系人" value="添加联系人&#13;&#10;&#13;&#10;&#13;&#10;"></td>
        <td colspan="3" height="67">
          <table id="Table3" cellspacing="0" cellpadding="0" width="380" border="0">
            <tr>
              <td align="center">
                <asp:ListBox ID="lbx_Linkman" runat="server" Width="150px" SelectionMode="Multiple" />
              </td>
              <td align="center">
                <p align="center">
                  <asp:Button ID="btn_inlinkman" runat="server" CssClass="redbuttoncss" Text="<<<" /><br>
                  <br>
                  <asp:Button ID="btn_outlinkman" runat="server" CssClass="redbuttoncss" Text=">>>" /></p>
              </td>
              <td align="center">
                <asp:ListBox ID="lbx_ClientLinkman" runat="server" Width="150px" SelectionMode="Multiple" />
              </td>
            </tr>
          </table>
          <table id="Table4" cellspacing="0" cellpadding="0" width="400" border="0">
            <tr>
              <td align="center"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="33" style="width: 76px" align="center" colspan="1" rowspan="1">接触目的</td>
        <td colspan="3" height="33">&nbsp;
          <asp:TextBox ID="tbx_contactaim" runat="server" Width="400px" TextMode="MultiLine" Height="36px" /></td>
      </tr>
      <tr>
        <td style="width: 76px" align="center" bgcolor="#e8f4ff" colspan="1" height="24" rowspan="1">近期标的</td>
        <td style="width: 274px" valign="middle" colspan="1" height="24" rowspan="1">&nbsp;<asp:TextBox ID="tbx_sellmoney" runat="server" Width="112px">0</asp:TextBox>元(RMB)<asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="tbx_sellmoney" MaximumValue="9999999999" MinimumValue="0" ErrorMessage="请输入数字" /><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbx_sellmoney" ErrorMessage="请输入数字" /></td>
        <td bgcolor="#e8f4ff" height="24">&nbsp;成交预估</td>
        <td height="24">
          <asp:DropDownList ID="ddl_bargainprognosis" runat="server">
            <asp:ListItem Value="*">*</asp:ListItem>
            <asp:ListItem Value="**">**</asp:ListItem>
            <asp:ListItem Value="***">***</asp:ListItem>
            <asp:ListItem Value="****">****</asp:ListItem>
            <asp:ListItem Value="*****">*****</asp:ListItem>
          </asp:DropDownList>
          (星级越高,成功可能性越高) </td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center" colspan="1" rowspan="1">接触方式</td>
        <td colspan="3"><asp:CheckBox ID="cbx_telephone" runat="server" Text="电话" /><asp:CheckBox ID="cbx_fax" runat="server" Text="传真" /><asp:CheckBox ID="cbx_email" runat="server" Text="邮件" /><asp:CheckBox ID="cbx_mail" runat="server" Text="信函" /><asp:CheckBox ID="cbx_meeting" runat="server" Text="会议" /><asp:CheckBox ID="cbx_interview" runat="server" Text="走访" /><asp:CheckBox ID="cbx_callin" runat="server" Text="来访" /><asp:CheckBox ID="cbx_sms" runat="server" Text="短消息" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center" colspan="1" rowspan="1">接触状态</td>
        <td colspan="3"><asp:CheckBox ID="cbx_trace" runat="server" Visible="False" Text="跟踪" /><asp:CheckBox ID="cbx_boot" runat="server" Visible="False" Text="启动" /><asp:CheckBox ID="cbx_commend" runat="server" Visible="False" Text="产品推荐" /><asp:CheckBox ID="cbx_requirement" runat="server" Visible="False" Text="需求定义" /><asp:CheckBox ID="cbx_submit" runat="server" Visible="False" Text="方案提交" /><asp:CheckBox ID="cbx_negotiate" runat="server" Visible="False" Text="商务谈判" /><asp:CheckBox ID="cbx_actualize" runat="server" Visible="False" Text="项目实施" /><asp:CheckBox ID="cbx_traceservice" runat="server" Visible="False" Text="跟踪服务" /><asp:CheckBox ID="cbx_last" runat="server" Visible="False" Text="收尾款" /><asp:RadioButton ID="rbtn_trace" runat="server" Text="跟踪" Checked="True" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_boot" runat="server" Text="启动" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_commend" runat="server" Text="产品推荐" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_requirement" runat="server" Text="需求定义" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_submit" runat="server" Text="方案提交" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_negotiate" runat="server" Text="商务谈判" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_actualize" runat="server" Text="项目实施" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_traceservice" runat="server" Text="跟踪服务" GroupName="contactstatus" /><asp:RadioButton ID="rbtn_last" runat="server" Text="收尾款" GroupName="contactstatus" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center" colspan="1" rowspan="1">本次费用</td>
        <td style="width: 278px" valign="middle">&nbsp;<asp:TextBox ID="tbx_thisfee" runat="server" Width="112px">0</asp:TextBox>元(RMB)<asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="tbx_thisfee" MaximumValue="999999" MinimumValue="0" ErrorMessage="请输入数字" /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbx_thisfee" ErrorMessage="请输入数字" /></td>
        <td bgcolor="#e8f4ff">&nbsp;费用用途</td>
        <td valign="middle"><asp:CheckBox ID="cbx_travel" runat="server" Text="差旅" /><asp:CheckBox ID="cbx_food" runat="server" Text="餐饮" /><asp:CheckBox ID="cbx_gift" runat="server" Text="礼品" /><asp:CheckBox ID="cbx_out" runat="server" Text="公关" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="61" style="width: 76px" align="center" colspan="1" rowspan="1">接触内容</td>
        <td colspan="3" height="61">&nbsp;<asp:TextBox ID="tbx_contactcontent" runat="server" Width="632px" TextMode="MultiLine" Height="57px" /></td>
      </tr>
      <tr>
        <td bgcolor="#e8f4ff" height="24" style="width: 76px" align="center">下次接触目的</td>
        <td style="width: 278px">&nbsp;<asp:TextBox ID="tbx_nextcontactaim" runat="server" Width="272px" /></td>
        <td bgcolor="#e8f4ff"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td valign="middle" bgcolor="#e8f4ff" height="24" style="width: 76px" align="center" colspan="1" rowspan="1">附件</td>
        <td colspan="3"><input class="inputCss" id="File1" style="width: 400px; height: 19px" type="file" size="81" name="File1" runat="server">
          <br>
          <input class="inputCss" id="File2" style="width: 400px; height: 19px" type="file" size="81" name="File2" runat="server">
          <br>
          <input class="inputCss" id="File3" style="width: 400px; height: 19px" type="file" size="81" name="File3" runat="server"></td>
      </tr>
      <tr>
        <td align="center" colspan="4" height="36">
          <asp:Button ID="btn_OK" runat="server" CssClass="buttoncss" Text=" 确 定 " Width="60px" /><asp:Label ID="lbl_Message" runat="server" Width="70px" /></td>
      </tr>
      <tr>
        <td colspan="4"><uc1:ControlClientContactHistory ID="ControlClientContactHistory1" runat="server" /></td>
      </tr>
      <tr>
        <td align="right" colspan="4"><a href="javascript:window.close();">关闭窗口</a></td>
      </tr>
    </table>
  </form>
</body>
</html>
